Reading the value of user created attributes

How to read a user created/defined attribute using DXL script. I have a script like this.

 

Module srcModule=current
Object obj = null
int i=0
string s=null
for obj in srcModule do
{
 if(obj."Object Text" ""!= "")
 {
  if(obj."Absolute Number" ""== "7")
  {
   s=obj."Test Case"
   print s
  }
 }
}

 

But this script does not return the value in the attribute Test Case.


Adhithya - Sat May 11 06:29:21 EDT 2013

Re: Reading the value of user created attributes
llandale - Sat May 11 16:49:56 EDT 2013

Make sure you found the correct object:

  • print "Test Case for Object #" (identifier(obj)) " = [" S "]\n"
  • current = obj
  • refresh(srcModule)
  • break

-Louie

Re: Reading the value of user created attributes
Adamarla - Mon May 13 01:13:33 EDT 2013

Make sure you have at least read permission to the attribute definition and value.